package org.leo.test.guava.eventbus.day1;

import com.google.common.eventbus.Subscribe;
import lombok.extern.slf4j.Slf4j;

/**
 * <p>
 *
 * </p>
 *
 * @Package: org.leo.test.guava.eventbus.day1
 * @ClassName: AbstractListener
 * @author: Li.Junlin
 * @date: 2019.12.16 11:13
 */
@Slf4j
public abstract class AbstractListener {
    @Subscribe
    public void commonTask(final String event){
        if (log.isInfoEnabled()){
            log.info("Received event [{}] will be handle by {}.{}", new Object[]{event,this.getClass().getSimpleName(),"commonTask"});
        }
    }
}
